﻿using System;
using BusinessLogic.Models.ValidationAttributes;
using Interfaces.Models;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;

namespace BusinessLogic.Models.LogicModels.News
{
    public class Person : IPerson
    {
        public Guid? Id { get; set; }

        [RegexValidator(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*", Tag = RulesKeys.Format)]
        public string Email { get; set; }
        
        public string Name { get; set; }
        
        public string Uri { get; set; }
    }
}
